import request from '@/utils/request'

export const loginApi = (data) => {
  return request.post('sys/login', data)
}

export const getUserInfoApi = () => request.get('/sys/profile')

export const updatePasswordApi = (data) => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data
})

export const getUserDetailById = (id) => request.get(`/sys/user/${id}`)
